<?php
namespace app\api\middleware;

use app\lib\exception\Miss;
use think\exception\ValidateException;
use think\Response;

class Product
{
    public function handle($request, \Closure $next)
    {
        $token = $request->header('X-CSRF-TOKEN');
        if(!$token) 
        {
          return fail('token 验证失败');
        }  
        return $next($request);
    }
}
